﻿using System.Drawing;

namespace GomokuClient {
    // 常量
    class Const {
        // 格
        public const int GRID_SIZE = 40;                                                    // 尺寸

        // 游戏区域
        public const int GAME_BOARD_POINT_COUNT_H = 15;                                     // 横向点数
        public const int GAME_BOARD_POINT_COUNT_V = 15;                                     // 纵向点数
        public const int GAME_BOARD_WIDTH = (GAME_BOARD_POINT_COUNT_H + 1) * GRID_SIZE;     // 宽度
        public const int GAME_BOARD_HEIGHT = (GAME_BOARD_POINT_COUNT_V + 1) * GRID_SIZE;    // 高度
        public static readonly Color GAME_BOARD_COLOR = Color.FromArgb(128, 128, 192);      // 背景色
        public static readonly Color GAME_BOARD_BORDER_COLOR = Color.Black;                 // 线颜色

        // 胜利数
        public const int WIN_NUMBER = 5;                                                    // 达到此数胜利

        // 棋子
        public const int PIECE_RADIUS = GRID_SIZE * 4 / 10;                                 // 半径
    }
}
